Multiple tapdisk2 processes may use the same parent disk images (later used to
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:57 +0000 (06:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:57 +0000 (06:27 +0000)
commit06d2e6455f6333c7049f72d41f8c89a1a9884e51
tree982d287982defca7bb698a97c216eb059a4a6a60
parent57ea955dd313ed5a93c5092dc4a9b22dfcb01949
Multiple tapdisk2 processes may use the same parent disk images (later used to
detect sharable memory pages). This patch establishes unique id for each disk
image opened by tapdisk2, and stores it in shared memory region, thus making it
available to the remaining tapdisk2s.

Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
tools/blktap2/drivers/tapdisk-image.c
tools/blktap2/drivers/tapdisk-image.h
tools/memshr/interface.c
tools/memshr/memshr.h
tools/memshr/shm.c
tools/memshr/shm.h